import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    validation:null,
    pwdshow:'',
    phone:'',
    nickname:'',
    dresslist:[],
    dress:'',
    foodselect:[],
    citylist:'',
    province:'',
    city:'',
    school_list:'',
    school:'',
    foodlist:'',
    shoplist:'',
  },
  mutations: {
    setshoplist(state,value){
      state.shoplist=value
    },
    setfoodlist(state,value){
      state.foodlist=value
    },
    setcitylist(state,value){
      state.citylist=value
    },
    setprovince(state,value){
      state.province=value
    },
    setschoollist(state,value){
      state.school_list=value
    },
    setcity(state,value){
      state.city=value
    },
    setschool(state,value){
      state.school=value;
    },
    setvalidation(state,value){
      state.validation=value
    },
    login(state,value){
      state.phone=value
    },
    setnickname(state,value){
      state.nickname=value
    },
    setdresslist(state,value){
      state.dresslist=value
    },
    setpwdshow(state,value){
      state.pwdshow=value
    },
    setdress(state,value){
      state.dress=state.dresslist[value]
    },
    loginsetdress(state,value){
      state.dress=value
    },
    setphone(state,value){
      state.phone=value
    }
  },
  actions: {
  },
  modules: {
  }
})
